/* ----------  Gonje Help Widget Styles  ---------- */
.gonje-bot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    height: 600px;
    z-index: 1;
}

.gonje-bot-toggle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background: #70AB4B;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
    z-index: 1;
    transition: all .3s ease;
    border: 3px solid white;
}
.gonje-bot-toggle:hover {
    transform: scale(1.1);
    background: #76A713;
}
.gonje-bot-toggle:hover::before {
    content: "Ask me anything Gonje related!";
    position: absolute;
    bottom: 80px;
    right: 0;
    background: #1A1A1A;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: .75rem;
    white-space: nowrap;
    z-index: 1;
    animation: gonje-bot-fadeIn .3s ease;
}
.gonje-bot-toggle:hover::after {
    content: "";
    position: absolute;
    bottom: 75px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #1A1A1A;
    z-index: 1001;
}
.gonje-bot-toggle img {
    width: 70%;
    height: 70%;
    border-radius: 50%;
}

.gonje-bot-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    height: 470px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all .3s ease;
    z-index: 999;
    visibility: hidden;
}
.gonje-bot-chat.gonje-bot-active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.gonje-bot-header {
    background: linear-gradient(135deg,#70AB4B 0%,#76A713 100%);
    color: white;
    padding: 18px;
    text-align: center;
    position: relative;
}
.gonje-bot-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}
.gonje-bot-logo {
    height: 30px;
    filter: brightness(0) invert(1);
}
.gonje-bot-header h1 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 600;
}
.gonje-bot-header p {
    font-size: .85rem;
    opacity: .9;
}
.gonje-bot-status {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    font-size: .75rem;
    background: rgba(255,255,255,.2);
    padding: 4px 8px;
    border-radius: 12px;
}
.gonje-bot-status-dot {
    width: 8px;
    height: 8px;
    background: #FBDDA2;
    border-radius: 50%;
    margin-right: 5px;
}

.gonje-bot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #F7F7F7;
    position: relative;
}

.gonje-bot-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
    animation: gonje-bot-fadeIn .3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,.05);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
@keyframes gonje-bot-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gonje-bot-message-bot {
    background: white;
    border-bottom-left-radius: 5px;
    align-self: flex-start;
    border: 1px solid #eaeaea;
}
.gonje-bot-message-user {
    background: linear-gradient(135deg,#70AB4B 0%,#76A713 100%);
    color: white;
    border-bottom-right-radius: 5px;
    align-self: flex-end;
    flex-direction: row-reverse;
}

.gonje-bot-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border: 2px solid #70AB4B;
}
.gonje-bot-avatar-bot {
    background-image: url(https://marketplace.gonje.com/images/mascot_bg.png);
}
.gonje-bot-avatar-user {
    background: #D5AD5F;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: .8rem;
}

.gonje-bot-message-content {
    flex: 1;
    min-width: 0;
}
.gonje-bot-message-time {
    font-size: .65rem;
    opacity: .7;
    margin-top: 5px;
    text-align: right;
}
.gonje-bot-message-user .gonje-bot-message-time {
    text-align: left;
}

.gonje-bot-input-container {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
    background: white;
    position: relative;
}
.gonje-bot-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    background: white;
    font-size: .9rem;
    transition: all .3s;
}
.gonje-bot-input:focus {
    border-color: #70AB4B;
    box-shadow: 0 0 0 2px rgba(112,171,75,.2);
}

.gonje-bot-send-button {
    background: linear-gradient(135deg,#70AB4B 0%,#76A713 100%);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-left: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 8px rgba(112,171,75,.3);
}
.gonje-bot-send-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(112,171,75,.4);
}

.gonje-bot-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 15px 15px;
    background: white;
}
.gonje-bot-quick-action {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: .8rem;
    cursor: pointer;
    transition: all .2s;
}
.gonje-bot-quick-action:hover {
    background: #f5f5f5;
    border-color: #70AB4B;
    color: #70AB4B;
}

.gonje-bot-typing-indicator {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    align-self: flex-start;
    width: fit-content;
    margin-bottom: 10px;
    border: 1px solid #eaeaea;
    gap: 10px;
}
.gonje-bot-typing-dot {
    width: 8px;
    height: 8px;
    background: #70AB4B;
    border-radius: 50%;
    margin: 0 2px;
    animation: gonje-bot-typing 1.4s infinite ease-in-out;
}
.gonje-bot-typing-dot:nth-child(1) { animation-delay: 0s; }
.gonje-bot-typing-dot:nth-child(2) { animation-delay: .2s; }
.gonje-bot-typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes gonje-bot-typing {
    0%,60%,100% { transform: translateY(0); }
    30%        { transform: translateY(-5px); }
}

.gonje-bot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.gonje-bot-suggestion {
    background: rgba(112,171,75,.1);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: .75rem;
    cursor: pointer;
    transition: all .2s;
    color: #70AB4B;
    border: 1px solid rgba(112,171,75,.2);
}
.gonje-bot-suggestion:hover {
    background: rgba(112,171,75,.2);
}

.gonje-bot-help-guide {
    background: #F7F7F7;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
    font-size: .8rem;
    border-left: 3px solid #70AB4B;
}
.gonje-bot-help-guide h4 {
    color: #1A1A1A;
    margin-bottom: 8px;
    font-size: .9rem;
}
.gonje-bot-help-guide ol,
.gonje-bot-help-guide ul {
    padding-left: 20px;
    margin: 5px 0;
}
.gonje-bot-help-guide li {
    margin-bottom: 5px;
}

.gonje-bot-step-number {
    background: #70AB4B;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: .7rem;
    margin-right: 8px;
}

.gonje-bot-info-label {
    font-weight: 600;
    color: #1A1A1A;
}

.gonje-bot-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #B7162E;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .7rem;
    font-weight: bold;
    animation: gonje-bot-pulse 2s infinite;
}
@keyframes gonje-bot-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.gonje-bot-topic-category {
    display: inline-block;
    background: rgba(213,173,95,.1);
    color: #D5AD5F;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: .7rem;
    margin-right: 8px;
    border: 1px solid rgba(213,173,95,.3);
}

.gonje-bot-contact-info {
    background: #F0F7FF;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
    border-left: 3px solid #4facfe;
}
.gonje-bot-contact-info h4 {
    color: #1A1A1A;
    margin-bottom: 8px;
    font-size: .9rem;
}
.gonje-bot-contact-info p {
    margin: 5px 0;
}

.gonje-bot-support-link {
    display: inline-block;
    background: #70AB4B;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: .8rem;
    margin-top: 10px;
    transition: all .3s;
}
.gonje-bot-support-link:hover {
    background: #76A713;
    transform: translateY(-2px);
}

.gonje-bot-helpful-links {
    background: #FFF3B9;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
    border-left: 3px solid #D39B2D;
}
.gonje-bot-helpful-links h4 {
    color: #1A1A1A;
    margin-bottom: 8px;
    font-size: .9rem;
}
.gonje-bot-helpful-links ul {
    list-style: none;
    padding-left: 0;
}
.gonje-bot-helpful-links li {
    margin-bottom: 8px;
}
.gonje-bot-helpful-links a {
    color: #70AB4B;
    text-decoration: none;
    font-size: .8rem;
    transition: color .3s;
}
.gonje-bot-helpful-links a:hover {
    color: #76A713;
    text-decoration: underline;
}

.gonje-bot-error {
    background: #FFE6E6;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
    border-left: 3px solid #B7162E;
    color: #B7162E;
}
.gonje-bot-error h4 {
    margin-bottom: 8px;
    font-size: .9rem;
}

/* High-specificity overrides to avoid theme conflicts */
.gonje-bot-container .gonje-bot-toggle { z-index: 10000 !important; }
.gonje-bot-container .gonje-bot-chat    { z-index: 9999  !important; }

/* Hide any theme "close" buttons that might clash */
.gonje-bot-container .promo-close,
.gonje-bot-container [class*="promo-close"],
.gonje-bot-container [class*="close"] { display: none !important; }

/* Desktop: chat appears beside toggle */
@media (min-width: 1024px) {
    .gonje-bot-container {
        width: 800px;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
    }
    .gonje-bot-chat {
        position: relative;
        bottom: auto;
        right: 80px;
        margin-bottom: 10px;
    }
    .gonje-bot-toggle {
        position: relative;
        bottom: auto;
        right: auto;
    }
}

/* Mobile full-screen */
@media (max-width: 480px) {
    .gonje-bot-container {
        width: 100%;
        height: 100vh;
        bottom: 0;
        right: 0;
    }
    .gonje-bot-chat {
        width: 100%;
        height: 100%;
        border-radius: 0;
        bottom: 0;
        right: 0;
    }
    .gonje-bot-toggle {
        bottom: 20px;
        right: 20px;
    }
}

/* Clickable links inside chat bubbles */
.gonje-bot-message-content a {
    color: #70AB4B;
    text-decoration: underline;
    font-weight: 500;
    transition: color .2s;
}
.gonje-bot-message-content a:hover { color: #76A713; }

.gonje-bot-message-user .gonje-bot-message-content a {
    color: #FBDDA2;
    text-decoration: underline;
}
.gonje-bot-message-user .gonje-bot-message-content a:hover { color: #FFFFFF; }

/* New-message & help-links toggles */
.gonje-bot-new-button {
    position: absolute;
    top: -35px;
    right: 70px;
    background: #70AB4B;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 6px 12px;
    font-size: .7rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
    transition: all .3s ease;
    display: none;
}
.gonje-bot-new-button.show {
    display: block;
    animation: gonje-bot-fadeIn .3s ease;
}
.gonje-bot-new-button:hover {
    background: #76A713;
    transform: translateY(-2px);
}

.gonje-bot-help-links-toggle {
    background: #70AB4B;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: .8rem;
    cursor: pointer;
    margin: 10px 0;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}
.gonje-bot-help-links-toggle:hover { background: #76A713; }
.gonje-bot-help-links-toggle i { transition: transform .3s ease; }
.gonje-bot-help-links-toggle.expanded i { transform: rotate(180deg); }

.gonje-bot-help-links-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.gonje-bot-help-links-container.expanded { max-height: 200px; }